package com.daoeping.service.impl;

import com.daoeping.dao.Bzn_questionfavgroupDAO;
import com.daoeping.data.Bzn_questionfavgroup;
import com.daoeping.data.Bzn_questionfavorite;
import com.daoeping.domain.JsonData;
import com.daoeping.service.Bzn_questionfavgroupService;

public class Bzn_questionfavgroupServiceImpl implements Bzn_questionfavgroupService {
	private Bzn_questionfavgroupDAO bzn_questionfavgroupDAO ;
	
	public Bzn_questionfavgroupDAO getBzn_questionfavgroupDAO() {
		return bzn_questionfavgroupDAO;
	}

	public void setBzn_questionfavgroupDAO(
			Bzn_questionfavgroupDAO bzn_questionfavgroupDAO) {
		this.bzn_questionfavgroupDAO = bzn_questionfavgroupDAO;
	}

	@Override
	public boolean addBzn_questionfavgroup(
			Bzn_questionfavgroup bzn_questionfavgroup) {
		return bzn_questionfavgroupDAO.insertData(bzn_questionfavgroup);
	}

	@Override
	public JsonData findBzn_questionfavgroupList(
			Bzn_questionfavorite bzn_questionfavorite) {
		
		return bzn_questionfavgroupDAO.findBzn_questionfavgroupList(bzn_questionfavorite);
	}

	@Override
	public Bzn_questionfavgroup findBzn_questionfavgroupById(
			Bzn_questionfavgroup bzn_questionfavgroup) {
		return bzn_questionfavgroupDAO.findBzn_questionfavgroupById(bzn_questionfavgroup);
	}

	@Override
	public boolean editBzn_questionfavgroup(Bzn_questionfavgroup bzn_questionfavgroup) {
		return bzn_questionfavgroupDAO.updateData(bzn_questionfavgroup);
	}

	@Override
	public boolean delBzn_questionfavgroup(
			Bzn_questionfavgroup bzn_questionfavgroup) {
		return bzn_questionfavgroupDAO.deleteData(bzn_questionfavgroup);
	}

}
